package model 
{
	/**
	 * ...
	 * @author Yang Wang
	 */
	public class ArrayBuilder 
	{
		
		public function ArrayBuilder() 
		{
			
		}
		
		public function buildArray(length:uint) : Array
		{
			var array:Array = new Array();
			
			for(var l:int=0;l<length;l++)  
				array[l] = null;
			
			return array;
		}
		
		public function build2DArray(width:uint, height:uint) : Array
		{
			var array:Array = new Array();
			
			for(var w:int=0;w<width;w++)  
			{  
				array[w] = new Array();  
				for(var h:int=0;h<height;h++)  
					array[w][h] = null;
			}
			
			return array;
		}
	}

}